package com.koron.common.core.business.print.bean;

import com.koron.bean.base.BaseBean;
import com.koron.bean.system.staff.vo.EamUser;
import com.koron.common.core.business.print.ReportProcessing;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class PrintTemplateBean extends BaseBean{

    private String id ;
    private String appCode ;
    private String name ;
    private byte[] content;
    private String businessId;
    private Boolean defaultFlag;
    private String remark;
    @javax.persistence.Transient
    private String source;
    @javax.persistence.Transient
    private EamUser eamuser;
    @javax.persistence.Transient
    private String laboratory;
    private String status;


    @ApiModelProperty(value="业务code     数据字典  ")
    private String businessCode;


    @ApiModelProperty(value="业务组 数据字典(print_group_type) work_tick 工作票、ticket_operation_group 操作票、,交接班 (待确定)")
    private String businessGroup;

    public PrintTemplateBean() {
    }

    /**
     * 只用试验标准
     * @param name
     * @param businessId
     * @param defaultFlag
     */
    public PrintTemplateBean(String name, String businessId, Boolean defaultFlag) {
        this.content = ReportProcessing.content;//打印模板默认内容， 随项目启动静态缓存
        this.name = name;
        this.businessId = businessId;
        this.defaultFlag = defaultFlag;
    }
}
